#pragma once
#include "IEntity.h"


class Door : public IEntity
{
public:
    Door(void);
    /** Get the Entity Type */
    int GetType() { return TYPE_OBJECT; };
    /** Damage this entity */
    int Damage( int hit ) { return 0; };
    /** Update the entity */
    void Update( long dt);

    /** Collide with another entity */
    bool CollideWith( IEntity* ent );

    /** Test to see if the door is locked */
    bool IsLocked() { return m_locked; };
    /** Unlock the door */
    void UnLockDoor() { m_locked = false; };
    /** Lock the door */
    void LockDoor();

    /** Test to see if this ent can open the door */
    bool CanOpen(IEntity* ent);
    /** Open the door */
    void OpenDoor();
    bool IsOpen();
    /** Close the door */
    void CloseDoor();
    bool IsClosed();
private:
    bool    m_locked;
public:
    virtual ~Door(void);
};
